/*******************************************************************************
 * Copyright (c) 2013 Zero Square LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Zero Square LLC. Version 1
 * which accompanies this distribution
 ******************************************************************************/
package com.zsqr.dashboard.domain;
import javax.persistence.Id;
import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.security.authentication.encoding.Md5PasswordEncoder;
import org.springframework.security.authentication.encoding.PasswordEncoder;
import javax.xml.bind.annotation.XmlRootElement;



/**
 * Entity to hold application user data - First Name,Last Name etc.
 * @author Saurabh
 *
 */
@XmlRootElement
@Entity
@Table(name="merchantInfo")
public class MerchantEntity implements Serializable{
	
	private static final long serialVersionUID = -5950443841366537592L;
	@Id
	private int id;
	private String userName;
	private String firstName;
	private String lastName;
	private String password;
	private String lastSSN;
	private String merchantId;
	private String merchantCompany;
	private String creationdate;
	private String lastModifiedDate;
    private String location	; 
    
    
	//private long Id;
	
	
	
	public String getFirstName() {
		return firstName;
	}
	
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	public String getLastName() {
		return lastName;
	}
	
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	public String getUserName() {
		return userName;
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		//PasswordEncoder crypto = new Md5PasswordEncoder();
        //this.password = crypto.encodePassword(password, null);
		this.password = password;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public String getLastSSN() {
		return lastSSN;
	}

	public void setLastSSN(String lastSSN) {
		this.lastSSN = lastSSN;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String smerchantId) {
		merchantId = smerchantId;
	}

	public String getMerchantCompany() {
		return merchantCompany;
	}

	public void setMerchantCompany(String smerchantCompany) {
		merchantCompany = smerchantCompany;
	}

	public String getCreationdate() {
		return creationdate;
	}

	public void setCreationdate(String creationdate) {
		this.creationdate = creationdate;
	}

	public String getLastModifiedDate() {
		return lastModifiedDate;
	}

	public void setLastModifiedDate(String lastModifiedDate) {
		this.lastModifiedDate = lastModifiedDate;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	//public long getId() {
	//	return Id;
	//}

	//public void setId(long id) {
	//	this.Id = id;
	//}

}
